package zhh.tangbao.wechat.vo.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 专门给微信小程序封装的订单详情类
 * </p>
 *
 * @author 粥灰灰
 * <p>2023/5/4</p>
 */

@Data
public class OrderDetailVo  {

    private String id;

    /** 订单状态，状态详情见zhh.tangbao.commodity.constant.OrderStatus */
    private Integer orderStatus;

    /** 订单付款的时间点 */
    @JsonFormat(pattern = "yyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date paymentTime;

    @JsonFormat(pattern = "yyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date recordTime;

    /** 订单总价格 */
    private Double orderTotalPrice;

    /** 剩余有效时长 */
    private Long expireTime;

    private List<OrderMachineDetailVo> content;

}
